#ifndef INET_ECHO_H
#define INET_ECHO_H

#include "ServiceHandler.h"
#include "Reactor.h"
#include <iostream>

class EchoServiceHandler : public ServiceHandler
{
public:
  EchoServiceHandler(Reactor * dispatcher)
    : reactor_(dispatcher) {}
  void open();
  void service();
  void handleEvent(Handle h, EventType et);

private:
  Reactor * reactor_;
};

#endif
